
cmake_minimum_required(VERSION 3.5.0)
project(mono)

set(CMAKE_CXX_STANDARD 17)

add_subdirectory(graph)


file(GLOB local_src *.cpp)
file(GLOB local_header *.h)

add_library(fxcc_mono ${local_src} ${local_header})
if(WIN32)
set(mono_libs Ws2_32 mono-2.0-sgen Version libmonoutils libmono-static-sgen)
endif()

if(UNIX)
set(mono_libs mono-2.0)
endif()

target_link_libraries(fxcc_mono PUBLIC ${mono_libs} fxcc_mono_graph_common)